package com.panshi.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ConsultController {

    @RequestMapping("/consult_main")
    public String consultMain(Model model){
        model.addAttribute("zx","zx");
        return "consult/consult_main";
    }



    @GetMapping("/consult_solo/{id}")
    public String consultSolo(@PathVariable String id){
        System.out.println(id);
        return "consult/consult_particulars";
    }
}
